From: Colin Walters Date: Sat, 7 Sep 2002 21:30:37 +0000 (+0000) Subject: (diff-buffer-with-file): Call diff synchronously, so we don't delete X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~30752 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=b26e790763fd79c81c5b55f5ec3e2e153d6eea91;p=emacs.git (diff-buffer-with-file): Call diff synchronously, so we don't delete the temporary file before diff has a chance to read it. --- diff --git a/lisp/files.el b/lisp/files.el index ac25232bafe..ac61bbbd017 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -3008,7 +3008,7 @@ This requires the external program \"diff\" to be in your `exec-path'." (save-restriction (widen) (write-region (point-min) (point-max) tempfile nil 'nomessage))) - (diff buf-filename tempfile)) + (diff buf-filename tempfile nil t)) (when (file-exists-p tempfile) (delete-file tempfile))) nil)))